<template>
  <div class="container">
    <div class="img"><i class="el-icon-user"></i></div>
    <div class="font">
      <h3>在线人数：{{ Math.round(people) }}</h3>
      <p>总人数：10</p>
    </div>
  </div>
</template>

<script>
export default {
  name: 'ManageCard',

  data() {
    return {
      people: 2.1,
    };
  },

  mounted() {},

  methods: {},
};
</script>

<style lang="less" scoped>
.container {
  display: flex;
  max-width: 20%;
  height: 85px;
  align-items: center;
  background: #e2e4df;
  .img {
    width: 33%;
    background: #6070ac;
    text-align: center;
    height: 100%;
    line-height: 85px;
    color: white;
  }
  .font {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    height: 100%;
  }
}
</style>
